package com.it.gmall.activity.client;

import com.it.gmall.model.activity.SeckillGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "service-activity")
public interface ActivityFeignClient {
    // 获取首页显示数据
    @GetMapping("/api/activity/getIndexGoods")
    public List<SeckillGoods> getIndexGoods();

    @GetMapping("/api/activity/item/{skuId}")
    SeckillGoods item(@PathVariable Long skuId);
}
